from string import Template

rss10body = Template("""
<?xml version="1.0"?>
 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
          xmlns:content="http://purl.org/rss/1.0/modules/content/"
          xmlns="http://purl.org/rss/1.0/">
 <channel rdf:about="http://communicea.fairsay.com/new.rss">
   <title>Email feed</title>
   <link>http://</link>
   <description>
      IMAP email proxied to an RSS 1.0 feed
   </description>
   <items>
     <rdf:Seq>
     </rdf:Seq>
   </items>
 </channel>
</rdf:RDF>"""
)

rss10item = Template(
"""<item rdf:about="http://">
   <title></title>
   <link></link>
   <description>
   </description>
 </item>
 """
 )

atom10body = Template(
u"""<?xml version="1.0" encoding="utf-8"?>
   <feed xmlns="http://www.w3.org/2005/Atom">
      <title>$title</title>
      <link href="$link"/>
      <updated>$updated</updated>
      <author>
         <name>$author</name>
      </author>
      <id>urn:uuid:$id</id>
"""
)

atom10item = Template(u"""
      <entry>
         <title>$title</title>
         <link href="$link"/>
         <id>urn:uuid:$id</id>
         <updated>$updated</updated>
         <summary>$summary</summary>
         <content type="html" xml:space="preserve">
          <![CDATA[$content]]>
          </content>
      </entry>
""")